<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>JavaScript转义字符的简单应用</title>
    </head>
    <body>
        <h3>JavaScript转义字符的简单应用</h3>
        <hr />
        <script>
            alert("双引号 \"\n单引号 \'");
        </script>
    </body>
</html>